package com.lyc.dao;

import com.lyc.entity.Product;
import com.lyc.entity.vo.PCS;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer pid);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer pid);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectByCid(int cid);

    List<Product> selectAll();

    void deleteBatchByPids(List<Integer> list);

    Integer selectLastProductId();

    void deleteColorsAndSizesBatchByPids(List<Integer> pids);

    List<PCS> selectPCSByPid(Integer pid);

    void updateStore(@Param("id") Integer pcsId,@Param("store") Integer store);
}